package com.xitang.common.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("biz_category_product")
public class BizCategoryProduct extends Model<BizCategoryProduct> {
    @ExcelProperty(value = "分类编码", index = 0)
    private String categoryCode;
    @ExcelProperty(value = "产品编码", index = 1)
    private String productCode;

    @Override
    protected Serializable pkVal() {
        return this.categoryCode + this.productCode;
    }
}